﻿using Esosi.Entity;
using System;
using System.Collections.Generic;
using System.Text;

namespace Esosi.Register.Hospital.Models
{
    public class RegisterHospitalTpi
    {
        public long DeptId { get; set; }
        public string PatientName { get; set; }

        public long PatientSubTypeId { get; set; }

        /// <summary>
        /// 病历本费
        /// </summary>
        public bool CostOfMedicalRecord { get; set; }

        /// <summary>
        /// 工本费
        /// </summary>
        public bool CostOfProduction { get; set; }

        public ClinicType ClinicType { get; set; }
        public RegisterType RegisterType { get; set; }
        public IEnumerable<FeeItem> FeeItems { get; set; }

        public BalanceType BalanceType
        {
            get
            {
                return ClinicType switch
                {
                    ClinicType.Normal => Entity.BalanceType.Clinic,
                    ClinicType.Emergincy => Entity.BalanceType.Emergency,
                    ClinicType.Intensive => Entity.BalanceType.Intensive,
                    _ => Entity.BalanceType.Clinic,
                };
            }
        }
    }
}